package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.device.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author mjy
 * @since 2024-04-28
 */
@ApiModel(value = "Deviceinfo对象", description = "")
public class Deviceinfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public static int ACTIVATE = 1;

    @ApiModelProperty(value = "设备id采用雪花算法生成")
    @TableId(value = "device_id", type = IdType.ASSIGN_ID)
    private Integer deviceId;

    @ApiModelProperty(value = "设备唯一标识")
    private String imei;

    @ApiModelProperty(value = "当前设备连接设备服务器地址")
    private String host;

    @ApiModelProperty(value = "SIM卡卡号")
    private String iccid;

    @ApiModelProperty(value = "是否激活(与服务器建立一次连接后既激活0:未激活,1:激活)")
    private Integer isActivate;

    @ApiModelProperty(value = "设备定位类型 1=GPS, 2=CellID, 3=AGPS")
    private String deviceLocationType;

    @ApiModelProperty(value = "软件版本号")
    private String softwareVersion;

    @ApiModelProperty(value = "固件版本号")
    private String deviceVersion;

    @ApiModelProperty(value = "MODEM固件版本")
    private String modemDeviceVersion;


    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getIccid() {
        return iccid;
    }

    public void setIccid(String iccid) {
        this.iccid = iccid;
    }

    public Integer getIsActivate() {
        return isActivate;
    }

    public void setIsActivate(Integer isActivate) {
        this.isActivate = isActivate;
    }

    public String getDeviceLocationType() {
        return deviceLocationType;
    }

    public void setDeviceLocationType(String deviceLocationType) {
        this.deviceLocationType = deviceLocationType;
    }

    public String getSoftwareVersion() {
        return softwareVersion;
    }

    public void setSoftwareVersion(String softwareVersion) {
        this.softwareVersion = softwareVersion;
    }

    public String getDeviceVersion() {
        return deviceVersion;
    }

    public void setDeviceVersion(String deviceVersion) {
        this.deviceVersion = deviceVersion;
    }

    public String getModemDeviceVersion() {
        return modemDeviceVersion;
    }

    public void setModemDeviceVersion(String modemDeviceVersion) {
        this.modemDeviceVersion = modemDeviceVersion;
    }

    @Override
    public String toString() {
        return "Deviceinfo{" +
                "deviceId=" + deviceId +
                ", imei='" + imei + '\'' +
                ", host='" + host + '\'' +
                ", iccid=" + iccid +
                ", isActivate=" + isActivate +
                ", deviceLocationType='" + deviceLocationType + '\'' +
                ", softwareVersion='" + softwareVersion + '\'' +
                ", deviceVersion='" + deviceVersion + '\'' +
                ", modemDeviceVersion='" + modemDeviceVersion + '\'' +
                '}';
    }
}
